import threading
import time


def sayHello(i):
    print("say Hello %s" % i)
    time.sleep(1);


if __name__ == '__main__':

    for i in range(0, 5):
        sayHello(i)

    for i in range(0, 10):
        # 多线程传参数
        thread = threading.Thread(target=sayHello, args=(i,))
        thread.start()
